<template>
	<!-- v-for="item in categoryItem" key="item.id" -->
	<view class="container" v-for="item in categoryItem" :key="item.id">
		<view class="left">
			<image class="left_img" :src="item.activity_image" mode="widthFix"></image>
		</view>
		<view class="right">
			<view class="title">
				{{item.name}}
			</view>
			<view class="Extime">
				{{item.show_str}}
			</view>
			<view class="tag">
				{{item.subtitle}}
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		categoryItem: Array
	})
</script>

<style lang='scss' scoped>
	.container {
		width: 100%;
		height: 130rpx;
		display: flex;
		padding: 25rpx;

		.left {
			width: 110rpx;
			display: flex;
			margin-left: 15rpx;
			justify-content: center;
			align-items: center;

			&_img {
				width: 100%;
			}
		}

		.right {
			width: 100%;
			margin-top: 3rpx;
			display: block;
			margin-left: 20rpx;

			.title {
				font-weight: bold;
				font-size: 27rpx;
				margin-bottom: 8rpx;
				display: block;
				/* white-space: nowrap; */
				overflow: hidden;
				text-overflow: ellipsis;
			}

			.Extime {
				font-size: 24rpx;
				color: #666666;
			}

			.tag {
				display: inline-block;
				font-size: 22rpx;
				border: 1rpx solid #ffaa00;
				color: #ffaa00;
				padding: 0rpx 10rpx;
				/* width: 100rpx; */
			}
		}
	}
</style>
